package com.wicket.okrbff.biz.service.dto.common;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.validation.constraints.NotNull;
import lombok.Data;
import java.util.Objects;

/**
 * @desc BffMessageDto
 * @使用场景
 */
@Data
public class BffMessageDto implements Serializable {

  /**
   * 消息ID
   */
  @ApiModelProperty("消息ID")
  private String messageId;

  /**
   * 归属内容ID
   */
  @ApiModelProperty("归属内容ID")
  private String entityId;

  /**
   * 是否已处理 TRUE:是 FALSE:否
   */
  @ApiModelProperty("是否已处理")
  private String isHandle;
@Override
  public boolean equals(Object o) {
      if (this == o) return true;
      if (o == null || getClass() != o.getClass()) return false;
      if (!super.equals(o)) return false;
      BffMessageDto that = (BffMessageDto) o;
      return  messageId == that.messageId&&entityId == that.entityId&&isHandle == that.isHandle;
    }
@Override
  public int hashCode() {
      return Objects.hash(super.hashCode(), messageId,entityId,isHandle);
    }

}
